home *** CD-ROM | disk | FTP | other *** search
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 1997-99 Pandemic Studios
- //
- // Dark Reign II
- //
-
- CreateObjectType("objective_flee_to_shuttle1", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("InRegion")
- {
- Region("NearGC");
- Team("JDA");
- Type("*")
- {
- Amount(0);
- Operator(">");
- }
- }
-
- Action()
- {
- ExecuteScript("Traitors1", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "Traitors1");
- Op("%.region", "=", "NearShuttle");
- Op("%.attack", "=", 0);
- }
- ExecuteScript("Traitors3", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "Traitors3");
- Op("%.region", "=", "NearShuttle");
- Op("%.attack", "=", 1);
- }
- NewObjective("cineractive_shuttle");
- NewObjective("objective_flee_to_shuttle2");
- Op("@.flee1", "=", 1);
- }
- }
- }
-
- CreateObjectType("objective_flee_to_shuttle2", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE");
-
- Action()
- {
- ExecuteScript("Traitors2", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "Traitors2");
- Op("%.region", "=", "NearShuttle");
- Op("%.attack", "=", 1);
- }
- Op("@.flee2", "=", 1);
- }
- }
- }
-
- CreateObjectType("objective_stop_blinking1", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("OR")
- {
- Condition("VarConstInteger", "@GC.flee1", "==", 1);
- Condition("VarConstInteger", "@GC.flee2", "==", 1);
- }
-
- Action()
- {
- ObjectiveAbandoned("objective_blinking1");
- }
- }
- }
-
-